package Month11.Day11.T04;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Scanner;

public class  T04Test {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("输入年份");
        int year=in.nextInt();
        Calendar calendar=Calendar.getInstance();
        calendar.set(year,0,1);
        System.out.println(new SimpleDateFormat("yyyy-MM-dd E").format(calendar.getTime()));
        calendar.add(Calendar.DAY_OF_WEEK,7-calendar.get(Calendar.DAY_OF_WEEK)+1);
        for (int i=0;i<365;i+=7){
            calendar.add(Calendar.DAY_OF_WEEK,7);
            System.out.println(new SimpleDateFormat("yyyy-MM-dd E").format(calendar.getTime()));
        }
    }
}
